package com.qyhl.module_practice.volunteer.newlist.search;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeVolunteerBean;

import java.util.List;

public class PracticeVolSearchPresenter implements PracticeVolSearchContract.PracticeVolSearchPresenter {
    private PracticeVolSearchActivity mView;
    private PracticeVolSearchModel mModel;

    PracticeVolSearchPresenter(PracticeVolSearchActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeVolSearchModel(this);
    }

    @Override
    public void doSearch(String keyword, String page) {
        mModel.doSearch(keyword, page);
    }

    @Override
    public void setSearchList(List<PracticeVolunteerBean> beanList, boolean isMore) {
        mView.setSearchList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
